package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.MarketManagementDaoPool;
import com.sc.nft.entity.ShareProfitDaoPool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 分账结算池 Mapper 接口
 * </p>
 *
 * @author liGen
 * @since 2024-11-26
 */
@Mapper
public interface ShareProfitDaoPoolMapper extends BaseMapper<ShareProfitDaoPool> {

    ShareProfitDaoPool getOneByConditions(@Param("ecologyHatchId") Long ecologyHatchId, @Param("collectionId") Long collectionId, @Param("daoId") Long daoId, @Param("sourceDaoId") Long sourceDaoId, @Param("pointsId") Long pointsId, @Param("now") Date now);

    Boolean addAmount(@Param("id") Long id, @Param("amount") BigDecimal amount);

    BigDecimal getAmountServiceCentre(@Param("daoId") Long daoId, @Param("ecologyHatchId") Long ecologyHatchId);

}
